<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="application/javascript" src="//libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <style type="text/css">
        html {
            width: 100%;
            height: 100%;
        }
        body {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
            padding: 0;
        }
        .content {
            display: flex;
            justify-content: center;
            /*align-items: center;*/
            flex-direction: column;
            margin: auto;
            width: 700px;
            height: 700px;
            background: coral;
        }
        .btn {
            display: block;
            width: 120px;
            height: 40px;
            font-size: larger;
            margin: 100px auto;
        }

    </style>
</head>
<body>
<div class="content">
    <div>
        <button id="login" class="btn">登录</button>
        <!-- <button id="msd_morning" class="btn">msd日常</button> -->
        <!-- <button id="msd_afternoon" class="btn">msd计时</button> -->

		<button id="szy_morning" class="btn">三智园日常</button>

        <button id="szy_afternoon" class="btn">三智园计时</button>
    </div>
</div>

</body>
<script type="application/javascript">

    $(function () {
        $("#login").click(function () {
            $.get("/api/user/login", {}, function (data) {
                alert(JSON.stringify(data));
            });
        });

        $("#msd_morning").click(function () {
            $.get("/api/msd/comeWork", {}, function (data) {
                alert(JSON.stringify(data));
            });
        });

        $("#msd_afternoon").click(function () {
            $.get("/api/msd/goOffWork", {}, function (data) {
                alert(JSON.stringify(data));
            });
        });

		$("#szy_morning").click(function () {
            $.get("/api/szy/comeWork", {}, function (data) {
                alert(JSON.stringify(data));
            });
        });

		$("#szy_afternoon").click(function () {
            $.get("/api/szy/goOffWork", {}, function (data) {
                alert(JSON.stringify(data));
            });
        });
    });

</script>
</html>
